package com.jgj.zxkj.lookandcheckjggroupinfo.record;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.ActionBar;

import com.jgj.zxkj.lookandcheckjggroupinfo.login.ISignListener;
import com.jgj.zxkj.lookandcheckjggroupinfo.login.SignInDelegate;
import com.jgj.zxkj.lookandcheckjggroupinfo.record.detail.CheckDetailDialog;
import com.sa.all_cui.mix_core.activity.ProxyActivity;
import com.sa.all_cui.mix_core.delegate.DoggerDelegate;

import me.yokeyword.fragmentation.anim.DefaultHorizontalAnimator;
import me.yokeyword.fragmentation.anim.FragmentAnimator;

/**
 * Created by all-cui on 2017/10/26.
 */

public class HomeActivity extends ProxyActivity implements ISignListener {

    @Override
    public void onSignInSuccess() {
        startWithPop(new CheckBottomDelegate());
    }

    @Override
    public DoggerDelegate setRootDelegate() {
        CheckDetailDialog.newInstance().show(getSupportFragmentManager(),"ddd");
        return new SignInDelegate();
    }



    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        final ActionBar ab = getSupportActionBar();
        if (ab != null) {
            ab.hide();
        }

      /*  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
            getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN |
                    View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
        }*/
    }

    @Override
    public FragmentAnimator onCreateFragmentAnimator() {
        return new DefaultHorizontalAnimator();
    }
}
